<template>
  <div class="myexp">
    <van-nav-bar title="我分享的面经" @click-left="onClickLeft">
      <template #left>
        <i class="iconfont iconbtn_nav_back"></i>
      </template>
    </van-nav-bar>
    <div class="search">
      <van-search v-model="value" shape="round" placeholder="请输入关键字" />
    </div>
    <div class="content">
      <h6>这是一个很牛逼的标题</h6>
      <div class="fonts">这是一条很牛逼的内容</div>
      <div class="footer">
        <div class="left">
          <img
            src="https://dss0.bdstatic.com/70cFuHSh_Q1YnxGkpoWK1HF6hhy/it/u=1906469856,4113625838&fm=26&gp=0.jpg"
            alt=""
          />
          <span class="userName">苍鹰翱翔</span>
        </div>
        <div class="zan">
          <span>10分钟前</span>
          <span><i class="iconfont iconicon_pinglunliang"></i>1287</span>
          <span><i class="iconfont iconbtn_dianzan_big_nor"></i>879</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      value: ''
    }
  },
  methods: {
    // 返回上一页
    onClickLeft () {
      this.$router.go(-1)
    }
  }
}
</script>

<style lang="less" scoped>
.myexp {
  /deep/ .iconfont {
    font-size: 35px;
  }

  /deep/ [class*='van-hairline']::after {
    border: none;
  }
  padding-top: 50px;
  /deep/.van-nav-bar__title {
    font-weight: 700;
  }
  .search {
    width: 92%;
    margin-left: 15px;
    /deep/ .van-search__content {
      background-color: #f7f4f5;
    }
  }
  .content {
    padding: 0 15px;
    h6 {
      margin: 10px 0;
    }
    .footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      .left {
        display: flex;
        justify-content: space-between;
        align-items: center;
        img {
          width: 30px;
          height: 30px;
          border-radius: 50%;
          vertical-align: middle;
          margin-right: 10px;
        }
        .userName {
          font-size: 12px;
        }
      }
      .zan {
        font-size: 12px;
        color: #ccc;
        margin-top: 5px;
        .iconfont {
          font-size: 16px;
          color: #ccc;
        }
      }
    }
    .fonts {
      margin: 15px 0;
      font-size: 14px;
      color: #ccc;
    }
  }
}
</style>
